﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Artech.Messages
{
    public interface IMessageProvider
    {
        IMessageFilter MessageFilter { get; }
        bool TryGetMessages(string category, string name, out IEnumerable<MessageEntry> messages);

        IEnumerable<MessageEntry> GetAllMessagesForEdit();
        bool TryGetMessagesForEdit(string category, out IEnumerable<MessageEntry> messages);
        bool TryGetMessagesForEdit(string category, string name, out IEnumerable<MessageEntry> messages);

        void UpdateMessages(IEnumerable<MessageEntry> messages);
    }
}